<%@ Control Language="c#" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Register TagPrefix="CSDP" Namespace="CommunityServer.Discussions.Controls.PostDisplay" Assembly="CommunityServer.Discussions" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Import Namespace="CommunityServer.Discussions.Controls" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer" %>

<asp:Repeater id="PostRepeater" Runat="server">
	<HeaderTemplate>
		<ul class="ForumPostList">
	</HeaderTemplate>
	<ItemTemplate>
		<li>
		<div class="ForumPostArea">
			<h4 class="ForumPostHeader">
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
					<tr valign="middle">
						<td align="left"><a runat="server" id="PostAnchor"><CS:ThemedImage runat="server" border="0" ImageUrl="/images/icon_post_show.gif" id="Themedimage1" /></a>&nbsp;<%# Formatter.FormatAgoDate (((ForumPost) Container.DataItem).PostDate) %></td>
					</tr>
				</table>
			</h4>
			<table cellspacing="0" cellpadding="0" border="0" width="100%">
				<tr valign=top>
					<td rowspan="2" class="ForumPostUserArea">
						<div class="ForumPostUserContent">
						<ul class="ForumPostUserPropertyList">
							<li class="ForumPostUserName">
								<CS:UserOnlineStatus runat="server" id="OnlineStatus" />
								<asp:Literal runat="server" id="Username" />
							</li>
							<li class="ForumPostUserAvatar">
								<CS:UserAvatar runat="server" Border="1" PadImage="False" id="Avatar" />
							</li>
							<li class="ForumPostUserIcons">
								<CS:PostIcons runat="server" id="PostIcon" />
							</li>
							<li class="ForumPostUserAttribute">
								<CS:UserAttribute FormatString="{0}" Attribute="Joined" runat="server" id="JoinedAttribute" />
							</li>
							<li class="ForumPostUserAttribute">
								<CS:UserAttribute FormatString="{0}" Attribute="Location" runat="server" id="LocationAttribute" />
							</li>
							<li class="ForumPostUserAttribute">
								<CS:UserAttribute FormatString="{0}" Attribute="Posts" runat="server" id="PostsAttribute" />
							</li>
							<li class="ForumPostUserAttribute">
								<CS:UserAttribute FormatString="{0}" Attribute="Points" runat="server" id="PointsAttribute" />
							</li>
							<li class="ForumPostRoleIcons">
								<CS:RoleIcons runat="server" id="RoleIcon" EnablePadding="false"/>
							</li>
						</ul>
						</div>
					</td>
					<td class="ForumPostContentArea">
						<div class="ForumPostTitleArea">
							<h4 class="ForumPostTitle">
								<asp:Literal runat="server" id="Emoticon" />
								<asp:HyperLink runat="server" id="Subject" Target="_blank" />
							</h4>
							
							<div class="ForumPostAttachment">
							</div>

							<div class="ForumPostThreadStatus">
							</div>

							<div class="ForumPostButtons">
							</div>
						</div>
						
						<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" style="table-layout: fixed;">
							<tr><td>
							<div class="ForumPostBodyArea">
							<div class="ForumPostContentText" id = "PostViewWrapper" runat="server">
								<CSDP:TextPost runat="server" id="TextPost" />
							</div>
							</div>
							</td></tr>
						</table>
					</td>
				</tr>
				<tr valign="bottom">
					<td class="ForumPostFooterArea">								
						<ul class="ForumPostStatistics" style="clear: both;">
							&nbsp;
						</ul>
					</td>
				</tr>
			</table>
		</div>
		</li>
	</ItemTemplate>
	<FooterTemplate>
		</ul>
	</FooterTemplate>
</asp:Repeater>